package com.md.model.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.md.util.StringUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 刘骄阳
 * 2022-05-20 0:21
 */
@Data
@ApiModel("id请求实体")
public class IdRequest {
  @JsonFormat(shape = JsonFormat.Shape.STRING)
  @ApiModelProperty("主键id")
  private Long id;

  @Override
  public String toString() {
    return StringUtil.objectToJson(this);
  }
}
